package com.cskaoyan.module.bean.statisticalreportsVO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@NoArgsConstructor
@Data
public class AdminStatOrderVO {

    @JsonProperty("columns")
    private String[] columns;
    @JsonProperty("rows")
    private List<RowsDTO> rows;

    @NoArgsConstructor
    @Data
    public static class RowsDTO {
        @JsonProperty("amount")//订单金额总额
        private BigDecimal amount;
        @JsonProperty("orders")//订单数量
        private Integer orders;
        @JsonProperty("customers")//当日下单用户总数
        private Integer customers;
        @JsonProperty("day")//订单成交日
        @JsonFormat(pattern = "yyyy-MM-dd")
        private String day;
        @JsonProperty("pcr")//客单价=总销售额/总顾客数
        private BigDecimal pcr;



    }
}
